Skip to content

Conversation

@a-nogikh
Copy link
Collaborator

@a-nogikh a-nogikh commented Jan 7, 2026

Given a git diff, determine the latest commit where the modified files
still have the exact sha hashes they had at the moment the git patch was
created.

Cc #6523.

@a-nogikh a-nogikh requested a review from dvyukov January 7, 2026 08:01
Return not just the modified files, but also their blob hashes.
Add a commitChangeset() method to simplify setting up repository states
in tests.
@a-nogikh a-nogikh force-pushed the features/commit-by-hashes branch from 73cb8af to 3da8f4c Compare January 8, 2026 12:52
@a-nogikh a-nogikh changed the title pkg/vcs: find base commit by blob sha hashes pkg/vcs, syz-cluster: find base commit by blob sha hashes Jan 8, 2026
@a-nogikh a-nogikh force-pushed the features/commit-by-hashes branch from 3da8f4c to 5613149 Compare January 8, 2026 14:33
Given a git diff, determine the latest commit where the modified files
still have the exact sha hashes they had at the moment the git patch was
created.
It will accelerate various commit search operations by orders of
magnitude.
Before traversing the list of trees, attempt to determine the base
tree/commit by looking at the SHA hashes from the supplied git diffs.
@a-nogikh a-nogikh force-pushed the features/commit-by-hashes branch from 5613149 to 677214e Compare January 8, 2026 15:06
@a-nogikh a-nogikh requested a review from tarasmadan January 9, 2026 13:00
@tarasmadan
Copy link
Collaborator

@gemini-cli /review

@a-nogikh a-nogikh added this pull request to the merge queue Jan 9, 2026
Merged via the queue into google:master with commit 96e9343 Jan 9, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants